<div id="busqueda" class="contenido-thickbox"><!-- class="corner">-->
    <img class="close" cerrar="busqueda-wrapper" src="<?='http://'.SERVER_NAME.APP_DIR.'/html/img/icon_delete.png'?>" style="float: right;display:block;" />

    <table class="form">
        <tbody>
            <tr class="titulo_form">
                <td colspan="2">Tiempo</td>
            </tr>
            <tr>
                <td class="left"><label class="titulo" for="solo_hoy">Canciones de hoy</label></td>
                <td><input name="solo_hoy" type="checkbox" <?if($var->opt['solo_hoy']) echo 'checked="checked"';?>/></td>
            </tr>
            <tr class="titulo_form">
                <td colspan="2">Favoritas</td>
            </tr>
            <tr>
                <td class="left"><label class="titulo" for="fav">Canciones favoritas</label></td>
                <td><input name="fav" id="fav" type="checkbox" <?if($var->opt['fav']) echo 'checked="checked"';?>/></td>
            </tr>
            <tr class="titulo_form">
                <td colspan="2">Canciones</td>
            </tr>
            <tr>
                <td class="left"><label class="titulo">T&iacute;tulo</label></td>
                <td><input type="text" class="txtSearch" name="titulo" value="<?=$var->opt['titulo']?>" /></td>
            </tr>

            <tr>
                <td class="left"><label class="titulo">Artista</label></td>
                <td><input type="text" class="txtSearch" name="artista" value="<?=$var->opt['artista']?>" /></td>
            </tr>

            <tr>
                <td class="left"><label class="titulo">&Aacute;lbum</label></td>
                <td><input type="text" class="txtSearch" name="album" value="<?=$var->opt['album']?>" /></td>
            </tr>
            <tr class="titulo_form">
                <td colspan="2">G&eacute;neros</td>
            </tr>
        </tbody>
    </table>
    <table>
    <?$count=0;
    foreach($var->datos['generos'] as $id => $genero){
        if($count%5 == 0){?>
    <tr>
    <?}?>
        <td class="genero-left"><input value="<?=$id?>" type="checkbox" name="generos[]" <?if($var->opt['generos'] && in_array($id,$var->opt['generos'])) echo 'checked="checked"';?>/></td>
        <td class="genero-right"><? echo utf8_encode($genero);?></td>
    <?if(($count+1)%5 == 0){?>
    </tr>
    <?}
    $count++;
    }?>
    </table>

    <a class="exec" clase="Canciones" href="buscar(1)" style="margin-left:280px"><input type="submit" name="buscar" value="Buscar" class="bot_form"/></a>
</div>